import sys
import csv

from rich import print
from rich.console import Console
from rich.panel import Panel
from rich.text import Text
from rich.table import Table

class save():
    def __init__(self,fileArray):
        name = input("请输入文件名：")
        with open(f"{sys.path[0]+'/'}【output】outputDatabase/{name}.csv", 'w', newline='') as file:
            w = csv.writer(file)
            w.writerows(fileArray)